#ifndef SCREEN_H
#define SCREEN_H
#include <global_variable.h>
#include"mycombobox.h"

#include <QMainWindow>

class Screen : public QMainWindow
{
    Q_OBJECT
public:
    explicit Screen(QWidget *parent = 0);
    bool eventFilter(QObject *watched, QEvent *event);
    void ui_Label_Init();
    void ui_Btn_Init();
    void connect_Init();
    void time_Init();
    int pos=0;
    int totalBtn =8;
    QTimer  *timer;
    QTimer  *timer2;
    QString str_show;
    bool show_flag=0;
    bool change_flag=0;  //1代表修改数据模式  0代表按键控制模式
    int elec_flag=0;//只是代表电磁阀的种类，用来切换电磁阀
    QPushButton *theBtn[8];
    QLabel *theLabel[10];
    void  Recive_Screen() ; //第三行的数据
    QList <QPushButton * >btnlist_ui;
    int number_temp=0;//亮度数据

signals:

public slots:
};

#endif // SCREEN_H
